package com.hjrpc.babyyamall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication( scanBasePackages = {"com.hjrpc.common.config", "com.hjrpc.babyyamall.product"})
@MapperScan("com.hjrpc.babyyamall.product.dao")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.hjrpc.babyyamall.product.feign"})
@EnableRedisHttpSession
//@ServletComponentScan("com.hjrpc.babyyamall.product.filter")
public class BabyyamallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(BabyyamallProductApplication.class, args);
    }

}
